package com.lion.ball.app.models.params.order;

/**
 * @author Chris Chan
 * Create on 2025-09-30 22:44
 * Use for: 收藏夹 排序参数
 * Explain:
 * 
 */
public class TradeGoodsFavoritesOrderParam {
    // ID
    private int id;
    // 用户账号
    private int accountCode;
    // 商品编码
    private int code;
    // 收藏时间
    private int time;

    // 无参构造方法
    public TradeGoodsFavoritesOrderParam() {
    }

    // 全参数构造方法
    public TradeGoodsFavoritesOrderParam(int id, int accountCode, int code, int time) {
        this.id = id;
        this.accountCode = accountCode;
        this.code = code;
        this.time = time;
    }

    // 全参数create生成器
    public static TradeGoodsFavoritesOrderParam create(int id, int accountCode, int code, int time) {
        return new TradeGoodsFavoritesOrderParam(id, accountCode, code, time);
    }

    // 全参数of生成器
    public static TradeGoodsFavoritesOrderParam of(int id, int accountCode, int code, int time) {
        return new TradeGoodsFavoritesOrderParam(id, accountCode, code, time);
    }
    // region Getter和Setter方法
    public int getId() {
        return id;
    }

    public TradeGoodsFavoritesOrderParam setId(int id) {
        this.id = id;
        return this;
    }

    public int getAccountCode() {
        return accountCode;
    }

    public TradeGoodsFavoritesOrderParam setAccountCode(int accountCode) {
        this.accountCode = accountCode;
        return this;
    }

    public int getCode() {
        return code;
    }

    public TradeGoodsFavoritesOrderParam setCode(int code) {
        this.code = code;
        return this;
    }

    public int getTime() {
        return time;
    }

    public TradeGoodsFavoritesOrderParam setTime(int time) {
        this.time = time;
        return this;
    }

    // endregion Getter和Setter方法
}
